/*
 * @Description: `unocss` 配置文件
 * @Author: Smellycat littlecandyi@163.com
 * @Date: 2025-04-10 11:39:04
 * @LastEditors: smellycat littlecandyi@163.com
 * @LastEditTime: 2025-04-12 22:53:03
 */

import {
	defineConfig,
	presetWind3,
	presetAttributify,
	presetIcons,
	transformerVariantGroup,
	transformerDirectives,
	transformerCompileClass,
	transformerAttributifyJsx
} from 'unocss'

export default defineConfig({
	rules: [[/dis-([a-z]+)/, ([, c]) => ({ display: c })]],
	shortcuts: [
		{
			// flex 居中布局
			'f-c-c': 'flex items-center justify-center'
		}
	],
	presets: [presetWind3(), presetAttributify(), presetIcons({ scale: 1.2 })],
	transformers: [
		transformerVariantGroup(),
		transformerDirectives(),
		transformerCompileClass(),
		transformerAttributifyJsx()
	]
})
